﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace CSharp.Libs.Koc
{
    public class SeekKnightItem
    {
        public SeekKnightItem(
            Kernel K,
            Hashtable htSeekKnightItem)
        {
            FirstName = K.GetHashtableValue(htSeekKnightItem, constants.KEY_FIRST_NAME, KernelTools.VariableTypes.String);
            Gender = K.GetHashtableValue(htSeekKnightItem, constants.KEY_GENDER, KernelTools.VariableTypes.String);
            HasAddedApp = K.GetHashtableValue(htSeekKnightItem, constants.KEY_HAS_ADDED_APP, KernelTools.VariableTypes.Boolean);
            HasApp= K.GetHashtableValue(htSeekKnightItem, constants.KEY_HAS_APP, KernelTools.VariableTypes.Boolean);
            LastName = K.GetHashtableValue(htSeekKnightItem, constants.KEY_LAST_NAME, KernelTools.VariableTypes.String);
            Name = K.GetHashtableValue(htSeekKnightItem, constants.KEY_NAME, KernelTools.VariableTypes.String);
            PicSquare = K.GetHashtableValue(htSeekKnightItem, constants.KEY_PIC_SQUARE, KernelTools.VariableTypes.String);
            PictureUrl = K.GetHashtableValue(htSeekKnightItem, constants.KEY_PICTURE_URL, KernelTools.VariableTypes.String);
            ProfileUrl = K.GetHashtableValue(htSeekKnightItem, constants.KEY_PROFILE_URL, KernelTools.VariableTypes.String);
            Uid = K.GetHashtableValue(htSeekKnightItem, constants.KEY_UID, KernelTools.VariableTypes.Int64);
        }

        public string FirstName { get; set; }
        public string Gender { get; set; }
        public bool HasAddedApp { get; set; }
        public bool HasApp { get; set; }
        public string LastName { get; set; }
        public string Name { get; set; }
        public string PicSquare { get; set; }
        public string PictureUrl { get; set; }
        public string ProfileUrl { get; set; }
        public Int64 Uid { get; set; }
    }
}
